/**
 * @file   config.h
 * @author wolfhead <wolfhead@wolfhead-laptop>
 * @date   Fri Oct 21 18:23:09 2011
 * 
 * @brief  
 * 
 * 
 */
#ifndef PROTOPLASM_CONFIG_H
#define PROTOPLASM_CONFIG_H

#include <string>
#include <vector>

namespace PP
{

typedef unsigned short DictionaryId;

struct AttributeConfig
{
    AttributeConfig();

    std::string name;
    std::string type;
    size_t length;
    std::string defaultValue;
    int isKey;

    std::string ToJson() const;
    std::string ToString() const;
};

struct DictionaryConfig
{
    DictionaryId id;
    std::string name;
    std::string parentName;

    std::vector<AttributeConfig> attributes;

    std::string ToJson() const;
    std::string ToString() const;
};





}//namespace PP

#endif
